import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import store from './redux/store'

ReactDOM.render(
		<App/>,
	document.getElementById('root')
)
// 监测redux中状态的改变，如果redux状态发生了改变，那么重新渲染App组件
store.subscribe(() => {
	ReactDOM.render(<App />, document.getElementById('root'))
})